import unittest, ddt
from myList import MyList


# 调试未通过

class TestMySplice(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        pass

    @classmethod
    def tearDownClass(cls):
        pass

    @ddt.data([[1, 2, 3, 4, 5, 6], 2, 3, [1, 2, 6]], [['a', 'b', 'c', 'd'], 1, 2, ['a', 'd']])
    @ddt.unpack
    def testCases(self, testList, index, count, expList):
        ml = MyList(testList)
        actList = ml.mySplice(index, count)
        self.assertEqual(expList, actList)


if __name__ == '__main__':
    unittest.main()
